package com.leapp.sk.ui.fragment.leave

import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import com.example.mvp.binder.BaseDataBinder
import com.example.mvp.fragment.BaseFragmentMVP
import com.leapp.sk.bean.LevelEntity
import com.leapp.sk.bean.ParentingTaskEntity
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.leave.ApprovalPendingDelegate

/**
 * 待审批
 * @author  chaohaipeng  on 2018/8/13.
 */
class ApprovalPendingFragment :BaseFragmentMVP<ApprovalPendingDelegate>(), SwipeRefreshLayout.OnRefreshListener{
    override fun onRefresh() {
        viewDelegate.stopSwipRefresh()
    }

    override fun initView(var1: Bundle?) {
    }

    override fun initData() {
        val mutableListOf = mutableListOf<LevelEntity>()
        for (i in 0..4){
            mutableListOf.add(LevelEntity())
        }
        viewDelegate.initAdapter(activity, mutableListOf, this,false)


    }

    override fun bindEvenListener() {
    }

    override fun getDelegateClass(): Class<ApprovalPendingDelegate> {
        return ApprovalPendingDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }
}